$fontSize_20: 1.1vw;
$fontSize_18: 1vw;
$fontSize_16: 0.9vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.2vw;
$fontSize_36: 1.8vw;

.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: all 600ms;
  background-color: white;

  .box {
    width: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .logo {
      display: block;
      img{
        max-width: 12vw;
        transition: all 600ms;
      }
    }

    .links {
      width: 50%;
      display: flex;
      justify-content: space-between;

      .item {
        a {
          color: #000;
          font-size: $fontSize_24;
          padding: 1.5vw 0;
          display: block;
          font-weight: 400;
          position: relative;
          transition: all 600ms;
          &::after{
            content:'';
            display: block;
            position: absolute;
            left: 0;
            bottom:0;
            width: 100%;
            height:2px;
            background-color: #C8161E;
            transition: all 600ms;
            opacity: 0;
          }
          &:hover{
            color:#C8161E;
            &::after{
              opacity: 1;
            }
          }
        }
        .active{
          color:#C8161E;
          &::after{
            opacity: 1;
          }
        }
      }
    }

    .lan {
      display: flex;
      margin-right: 10%;

      a {
        color: white;
        font-size: $fontSize_16;
        padding: 2px 8px;
      }

      a:first-child {
        background: #C8161E;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
      }

      a:last-child {
        background: #650005;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
      }
    }
  }
}
.hasBg{
  .box{
    .logo{
      img{
        transform: scale(.8);
      }
    }
    .links{
      .item{
        a{
          padding: 1vw 0;
        }
      }
    }
  }
}


.pheader {
  display: none;
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  left: 0;
  z-index: 1002;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);

  .search {
    position: absolute;
    right: 80px;
    width: 140px;
    top: 50%;
    transform: translateY(-50%);

    input {
      width: 100%;
      padding: 10px 0;
      border: none;
      border-bottom: 1px solid #D9D9D9;
      width: 0;
      background: transparent;
      color: white;
      transition: all 600ms;
    }

    .move {
      width: 100%;
    }

    .icon {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
    }
  }

  .menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;

    a {
      margin-left: 20px;
      transform: translateY(2px);

      img {
        width: 140px;
        object-fit: contain;
      }
    }

    .navbox {
      margin-right: 20px;

      .line {
        width: 30px;
        height: 1px;
        background-color: #000;
        margin: 8px 0;
        -webkit-transition: all .6s;
        transition: all .6s;
      }
    }

    .activeBox {
      .line:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
      }

      .line:nth-child(2) {
        transform: translateX(30px);
        opacity: 0;
      }

      .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
      }
    }
  }
}

.menuList {
  position: fixed;
  left: 0;
  top: 59px;
  width: 100%;
  z-index: 1001;
  background: white;
  display: none;
  height: calc(100vh - 59px);

  .lan {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;

    a {
      color: #646464;
      margin-left: 10px;
    }

    .active {
      font-weight: bolder;
      color: #000000;
    }
  }

  .item {
    //background: rgba(255,255,255,.8);
    padding: 1rem;
    background-color: #ededed;
    border-bottom: 1px solid #dadada;

    a {
      color: #000;
      display: block;
      position: relative;
      text-transform: uppercase;

      img {
        position: absolute;
        right: 0;
        width: 20px;
        transition: all 600ms;
        top: 5px;
      }

      .icon2 {
        position: static;
        width: auto;
        margin-right: 10px;
      }

      .rotate {
        transform: rotate(90deg);
      }
    }

    .tb {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      a {
        width: 100%;
        display: block;
      }

      img {
        width: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 600ms;
      }

      .rotate {
        transform: translateY(-50%) rotate(90deg);
      }
    }

    .types_top {
      display: none;

      a {
        font-size: 14px;
        margin-top: 15px;
      }
    }
  }
}

.activeList {
  transform: translateY(0);
}

.foot {
  background-color: white;
  padding: 3vw 0 2vw 0;
  border-top: 1px solid rgba(102, 102, 102, 0.35);
  .dom1 {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .r {
      width: 35%;
      color: #060101;
      font-size: $fontSize_20;
      text-transform: uppercase;
    }
  }

  .dom2 {
    width: 80vw;
    margin: 1vw auto 0 auto;
    display: flex;
    justify-content: space-between;

    .l {
      p {
        color: #000;
        font-size: $fontSize_16;
        margin-bottom: 1.5vw;
      }

      .icons {
        a {
          margin-right: 1vw;
        }
      }
    }

    .c {
      width: 25%;
      display: flex;
      justify-content: space-between;

      a {
        color: #000;
        font-size: $fontSize_16;
        display: block;
        margin-bottom: 10px;
      }

      a:first-child {
        margin-bottom: 1.5vw;
      }
    }

    .r {
      width: 35%;

      .des {
        color: #060101;
        font-size: $fontSize_16;
        line-height: 1.6;
      }

      .form {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-top: 2vw;
        input {
          width: 70%;
          background: #F3F4F4;
          border-radius: 50px;
          padding: 1vw  0;
          color: #6B7280;
          font-size: $fontSize_16;
          border: none;
          outline: none;
          text-indent: 20px;
        }

        a {
          width: 30%;
          display: flex;
          justify-content: center;
          align-items: center;
          border-radius: 50px;
          background: #C40B13;
          padding: 1vw  0;
          transition: all 600ms;
          p {
            color: white;
            font-size: $fontSize_16;
            text-transform: uppercase;
            margin-right: 10px;
          }
          &:hover{
            background-color: rgba(210, 9, 43, .8);
          }
        }
      }
    }
  }
}


@media screen and (max-width: 1024px) {
  .header {
    display: none;
  }

  .pheader {
    display: flex;
  }
  .foot{
    padding: 30px 0;
    .dom1{
      width: 90%;
      .logo{
        img{
          width: 60px;
        }
      }
      .r{
        font-size: 14px;
        width: fit-content;
      }
    }
    .dom2{
      width: 90%;
      margin: 20px auto 0 auto;
      flex-direction: column;
      .l{
        width: 100%;
        p{
          font-size: 14px;
          margin-bottom: 10px;
        }
        .icons{
          a{
            svg{
              width: 30px;
            }
          }
        }
      }
      .c{
        display: none;
      }
      .r{
        width: 100%;
        .des{
          font-size: 14px;
        }
        .form{
          input{
            font-size: 14px;
          }
          a{
            p{
              font-size: 12px;
              margin-right: 5px;
            }
          }
        }
      }
    }
  }
}